ABC150 B - Count ABC
https://atcoder.jp/contests/abc150/tasks/abc150_b
提出
code: python
n = int(input())
s = input()
print(s.count("ABC"))